﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.ComponentModel;

namespace TMTemplate
{
	public partial class Link : UserControl
	{
		public Link()
		{
			InitializeComponent();
            this.MouseEnter += new MouseEventHandler((s, e) => { VisualStateManager.GoToState(this, "Enter", false); });
            this.MouseLeave += new MouseEventHandler((s, e) => { VisualStateManager.GoToState(this, "Normal", false); });
		}

		[Category("Common Properties")]
		public string Text
		{
			get
			{
				return textBlock.Text;
			}
			set
			{
				textBlock.Text = value;
			}
		}
	}
}